﻿using RepositoryEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static RepositoryEntity.WorkFlow_InstanceStep;

namespace IRepositoryBll
{
    public interface IWorkFlow_InstanceStepBll : IBaseBll<WorkFlow_InstanceStep>
    {
        /// <summary>
        /// 分页
        /// </summary>
        /// <param name="page"></param>
        /// <param name="limit"></param>
        /// <param name="count"></param>
        /// <param name="reviewStatus"></param>
        /// <param name="userInfoId"></param>
        /// <returns></returns>
        object GetWorkFlow_InstanceStepListByPage(int page, int limit, out int count, InstanceStepStatus reviewStatus, string userInfoId);

        /// <summary>
        /// 审批业务操作
        /// </summary>
        /// <param name="iD"></param>
        /// <param name="reviewerReason"></param>
        /// <param name="reviewerStatus"></param>
        /// <returns></returns>
        bool Review(string iD, string reviewerReason, InstanceStepStatus reviewerStatus ,out string msg ,UserInfo userInfo);
        object GetWorkFlow_InstanceByStepId(string workFlow_InstanceStepId);
    }
}
